﻿using System;

namespace RL
{
    public class Rect
    {
        public int Width;
        public int Height;
        public Point TopLeft;

        public Rect(int x, int y, int w, int h)
        {
            TopLeft = new Point(x, y);
            Width = w;
            Height = h;
        }

        public override string ToString()
        {
            return string.Format("Rect({0},{1}:{2},{3})", TopLeft.X, TopLeft.Y, Width, Height);
        }
    }
}